package it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.pawn.stats;

import it.unical.canonaco.rende.igpe.game.cbv.datastructure.Pair;

import java.util.HashMap;
import java.util.LinkedList;

public class ScalingStats {

	private HashMap<Integer, LinkedList<Pair<Integer,Float>>> scalingStat;
	
	public ScalingStats() {
		setScalingStat(new HashMap<Integer, LinkedList<Pair<Integer,Float>>>());
		
	}


	public void setAmountByIndexes(int spellStatIndex, int charStatIndex, float amount){
		
		if(!scalingStat.containsKey(spellStatIndex))
			scalingStat.put(spellStatIndex, new LinkedList<Pair<Integer,Float>>());
		
			scalingStat.get(spellStatIndex).add(new Pair<Integer, Float>(charStatIndex, amount));
		
	}
	
	public HashMap<Integer, LinkedList<Pair<Integer,Float>>> getScalingStat() {
		return scalingStat;
	}


	public void setScalingStat(HashMap<Integer, LinkedList<Pair<Integer,Float>>> scalingStat) {
		this.scalingStat = scalingStat;
	}

	
	
}
